//This class is for testing purposes only
package com.main;

import com.restfb.DefaultFacebookClient;
import com.restfb.FacebookClient;

public class TestEventUsers {

	/**
	 * @param args
	 */
	static FacebookClient facebookClient;

	public static void main(String[] args) {

		String u_eID = "331218348435";
		FacebookClient facebookClient = getClient();
		EventUsersList evUsersList = new EventUsersList(facebookClient, u_eID);
		/**
		 * Testing Attendees
		 */
		// Testing getAttendees()
		System.out.println("EventUsersList.getAttendees(): "
				+ evUsersList.getAttendees());
		// Testing Attendee.getID
		System.out.println("GetAttendee 0 ID: "
				+ evUsersList.getAttendees().get(0).getID());
		// Testing Attendee.getID
		System.out.println("GetAttendee 1 Name: "
				+ evUsersList.getAttendees().get(1).getName());
		// Testing getAttendeeByName(String ID)
		System.out.println("GetAttendee by ID=707855857: "
				+ evUsersList.getAttendeeByID("707855857"));
		// Testing getAttendeeByName(String Name)
		System.out.println("GetAttendee by Name=Sergio Dagach: "
				+ evUsersList.getAttendeeByName("Sergio Dagach"));
		// Attendees Number
		System.out.println("EventUsersList.NumberOfAttendees(): "
				+ evUsersList.NumberOfAttendees());

		/**
		 * Testing Invited
		 */
		// Invited List
		System.out.println("EventUsersList.getInvited(): "
				+ evUsersList.getInvited());
		// Invited getID
		System.out.println("Get Invited User 0's ID: "
				+ evUsersList.getInvited().get(0).getID());
		// Invited getName
		System.out.println("Get Invited User 1's Name: "
				+ evUsersList.getInvited().get(1).getName());
		// Invited ByID
		System.out.println("Get Invited by ID=1523366066: "
				+ evUsersList.getInvitedByID("1523366066"));
		// Invited ByName
		System.out.println("Get Invited by Name=Acelya Dandin: "
				+ evUsersList.getInvitedByName("Acelya Dandin"));
		// Invited Number
		System.out.println("EventUsersList.NumberOfInvited(): "
				+ evUsersList.NumberOfInvited());

		/**
		 * Testing Maybe
		 */
		// Maybe List
		System.out.println("EventUsersList.getMaybe(): "
				+ evUsersList.getMaybe());
		// Maybe getID
		System.out.println("Get Maybe User 0's ID: "
				+ evUsersList.getMaybe().get(0).getID());
		// Maybe getName
		System.out.println("Get Maybe User 1's Name: "
				+ evUsersList.getMaybe().get(1).getName());
		// Maybe ByID
		System.out.println("Get Maybe by ID=1315907789: "
				+ evUsersList.getMaybeByID("1315907789"));
		// Maybe ByName
		System.out.println("Get Maybe by Name=Jay Bharat: "
				+ evUsersList.getMaybeByName("Jay Bharat"));
		// Maybe Number
		System.out.println("EventUsersList.NumberOfMaybe(): "
				+ evUsersList.NumberOfMaybe());

		/**
		 * Testing Noreply
		 */
		// Noreply List
		System.out.println("EventUsersList.getNoreply(): "
				+ evUsersList.getNoreply());
		// Noreply getID
		System.out.println("Get Noreply User 0's ID: "
				+ evUsersList.getNoreply().get(0).getID());
		// Noreply getName
		System.out.println("Get Noreply User 1's Name: "
				+ evUsersList.getNoreply().get(1).getName());
		// Noreply ByID
		System.out.println("Get Noreply by ID=25312146: "
				+ evUsersList.getNoreplyByID("25312146"));
		// Noreply ByName
		System.out.println("Get Noreply by Name=Thomas Garcia: "
				+ evUsersList.getNoreplyByName("Thomas Garcia"));
		// Noreply Number
		System.out.println("EventUsersList.NumberOfNoreply(): "
				+ evUsersList.NumberOfNoreply());

		/**
		 * Testing Declined
		 */
		// Declined List
		System.out.println("EventUsersList.getDeclined(): "
				+ evUsersList.getDeclined());
		// Declined getID
		System.out.println("Get Declined User 0's ID: "
				+ evUsersList.getDeclined().get(0).getID());
		// Declined getName
		System.out.println("Get Declined User 1's Name: "
				+ evUsersList.getDeclined().get(1).getName());
		// Declined ByID
		System.out.println("Get Declined by ID=1059364896: "
				+ evUsersList.getDeclinedByID("1059364896"));
		// Declined ByName
		System.out.println("Get Declined by Name=Vishal Sood: "
				+ evUsersList.getDeclinedByName("Vishal Sood"));
		// Declined Number
		System.out.println("EventUsersList.NumberOfDeclined(): "
				+ evUsersList.NumberOfDeclined());

		// EventUsersList.toString()
		System.out.println("EventUsersList.toString(): "
				+ evUsersList.toString());

	}

	// This method is for testing purposes only.
	private static FacebookClient getClient() {
		String accessToken = "2227470867%7C2.3qM5ZBWbvThjzhyqvU5lvg__.3600.1299740400-1283973006%7CdyOv6qGyD7YzdUXaC-Voxs4MczzzR0";
		facebookClient = new DefaultFacebookClient(accessToken);
		return facebookClient;
	}

}
